package com.treetao.union.db.service;

import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.extension.service.IService;
import com.treetao.union.db.model.SysMenu;
import com.treetao.union.db.model.SysRole;

/**
 * <p>
 *  服务类
 * </p>
 */
public interface SysRoleService extends IService<SysRole> {

	SysRole saveRole(SysRole role);

	SysRole getRoleById(Long id);

    void updateRole(SysRole role);

    void deleteRole(SysRole role);

    void saveRoleMenus(Long id, Set<SysMenu> menuSet);

    void dropRoleMenus(Long id);

    Integer getRoleNameCount(String name);

    List<SysRole> selectAll();
	
}
